// 库存管理接口
import request from "@/common/request.js";
const api = {

  classify:'/device_classify/'
};

const deClassifyApi = {

  get_classify(params) {
    return request({
      url: api.classify,
      method: "get",
      params,
    });
  },

  classify_detail(id) {
    return request({
      url: api.classify + id,
      method: "get",
    });
  },

  post_classify(data) {
    return request({
      url: api.classify,
      method: "post",
      data,
    });
  },

  patch_classify(data, id) {
    return request({
      url: api.classify + id + "/",
      method: "patch",
      data,
    });
  },

  delete_classify(id) {
    return request({
      url: api.classify + id + "/",
      method: "delete",
    });
  },
};
export default deClassifyApi;
